package com.example.demo.dto;

import lombok.Data;
import org.json.simple.JSONObject;
import org.json.simple.parser.JSONParser;

import java.util.List;

/**
 * Created by yhn on 2017/12/7.
 */
@Data
public class MingPian extends TencentRespon{
    private String angle;
    private List<Item_list> item_list;
    public MingPian(){}
    public MingPian(JSONObject object)throws Exception{
        ret = (Long)object.get("ret");
        msg = (String)object.get("msg");
        String str = object.get("data").toString();
        JSONParser parser=new JSONParser();
        JSONObject tojsonData =(JSONObject) parser.parse(str);
        item_list = (List<Item_list>)tojsonData.get("item_list");
    }
}
